package goods

import (
	"github.com/gin-gonic/gin"
)

var GoodsController = &goodsController{}

type goodsController struct {
}

// Paging 分页获取商品
func (c goodsController) Paging(ctx *gin.Context, req *GetGoodsListRequest) (res GetGoodsListResponse, err error) {
	//查询列表
	res.List, res.Total = NewGoodsService(ctx).getGoodsList(req)
	return
}
